package twu.shubham.biblioteca;


public class movierecord {

    public int slno ;
    public int year;
    public String movie;
    public String director;
    public int rate;

    public int setValues(int i,String name, int y, String dir, int r) {

        if(i>0)
        {
        slno =i;
        movie=name;
        year=y;
        director=dir;
        rate=r;
        return 1;
        }
        return 0;
    }

    public int moviePrint()
    {
        if(slno>0)
        {
            System.out.println(slno +"\t\t" + movie +"\t" + year +"\t" + director +"\t\t" + rate);
            return 1;
        }
        return 0;
    }
}
